export default {
  data () {
    return {
      clientHeight: 667
    }
  },
  mounted () {
    // 获取html可视区域高度
    this.clientHeight = `${document.documentElement.clientHeight}`
  },
  methods: {
    navToBack () {
      this.$router.back(-1)
    },
    navToPage (path, data) {
      if (data) {
        this.$router.push({ path: path, query: data })
      } else {
        this.$router.push(path)
      }
    }
  }
}
